#ifndef __SERVER_H
#define __SERVER_H

#include <config.h>

#include <string>
#include <vector>

using namespace Chat;
using namespace std;

extern vector<User> userList;


const string DB_NAME =
    "/home/unwarierbl/HelloWorld/粤嵌/自己代码/局域网聊天室项目/ubuntu服务端/chatRoom.db";


void* handleRequest(void* fd);

StateRet ServerRegisterUser(const Message& msg, int sockfd);
StateRet ServerLoginUser(const Message& msg, int sockfd);

#endif
